//package com.zz.study.sharding.controller;
//
//import com.zz.study.sharding.entity.CustomerOrderItem;
//import com.zz.study.sharding.mappers.CustomerOrderItemMapper;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.math.BigDecimal;
//import java.util.List;
//import java.util.Map;
//
///**
// * @author zz
// * @version 1.0.0 2022-07-17
// */
//@RestController
//public class CustomerOrderItemController {
//
//    @Resource
//    private CustomerOrderItemMapper customerOrderItemMapper;
//
//    @GetMapping("findOrderItem")
//    public CustomerOrderItem findOrder(@RequestParam("orderId") BigDecimal orderId) {
//        return customerOrderItemMapper.findOrderItem(orderId);
//    }
//
//    @GetMapping("findCustomerOrderItems")
//    public List<CustomerOrderItem> findCustomerOrders(@RequestParam("customerId") Long customerId) {
//        return customerOrderItemMapper.findCustomerOrderItems(customerId);
//    }
//
//    @GetMapping("findOrderItemDetail")
//    public Map<String, Object> findOrderItemDetail(@RequestParam("orderId") BigDecimal orderId) {
//        return customerOrderItemMapper.findOrderItemDetail(orderId);
//    }
//}
